import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);

/* 图片 */
import { Card } from 'vant';
Vue.use(Card);

/* 导航栏 */
import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant';
import { Toast } from 'vant';
Vue.use(GoodsAction);
Vue.use(GoodsActionButton);
Vue.use(GoodsActionIcon);
Vue.use(Toast);

/* 使用Vue.use注册组件 */
// import First from '/components/First.vue'
// Vue.use({
//      install(Vue){
//       Vue.component('First',first)
//      }
// })

//Vue.use(function(Vue){
//  Vue.component('First',First)
//})



import pluginObj from '@/components';
Vue.use(pluginObj)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
